<?php
namespace App\Common\Constants;

use App\Enums\{EnumTrait, DefaultCase, Localization};

enum CacheConst: string {
    use EnumTrait;
    
    #[Localization(label:'登录用户')]
    case LOGIN_TOKEN_KEY        = "login_tokens:";

    
    #[Localization(label:'验证码')]
    case CAPTCHA_CODE_KEY       = "captcha_codes:";

    
    #[Localization(label:'参数管理')]
    case SYS_CONFIG_KEY         = "sys_config:";

    
    #[Localization(label:'字典管理')]
    case SYS_DICT_KEY           = "sys_dict:";

    
    #[Localization(label:'防重提交')]
    case REPEAT_SUBMIT_KEY      = "repeat_submit:";

    
    #[Localization(label:'限流')]
    case RATE_LIMIT_KEY         = "rate_limit:";

    
    #[Localization(label:'登录账户密码错误次数')]
    case PWD_ERR_CNT_KEY        = "pwd_err_cnt:";

}